﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Page.User.Identity.IsAuthenticated)
        {
            if (User.IsInRole("Lab"))
            {
                Response.Redirect("Dossier/Labopdracht.aspx");
            }
            else if (User.IsInRole("Developer"))
            {
                Response.Redirect("Developer/Default.aspx");
            }
            else
            {
                Response.Redirect("Dossier/PatientInfo.aspx");
            }
        }

    }

}